<template>
  <div id="app">
    <BossHeader v-if="!isHideHeader" />
    <router-view />
  </div>
</template>

<script>
import BossHeader from '@/components/BossHeader.vue'
export default {
  components: { BossHeader },
  computed: {
    isHideHeader() {
      // 需要隐藏头部的所有页面路径
      const hideHeaderPages = ['/', '/QqLogin', '/login',]
      return hideHeaderPages.includes(this.$route.path)
    }
  }
}
</script>